package com.youtills.core.auth;

import com.youtills.core.admin.IAdminDao;
import com.youtills.core.admin.ILookup;
import com.youtills.core.admin.LookupType;
import com.youtills.core.admin.db.dao.AdminDao;

/**
 * Created by IntelliJ IDEA.
 * User: ravi
 * Date: 8/27/12
 * Time: 11:45 AM
 * To change this template use File | Settings | File Templates.
 */
public class ResourcePermissionType {

    private static final IAdminDao adminDao = AdminDao.getInstance();

    public static final ILookup SITE_ADMINISTRATION  = adminDao.getLookup(LookupType.RESOURCE_PERMISSION_TYPE, 1l);

    public static ILookup getResourcePermissionType(int permissionType){
        return adminDao.getLookup(LookupType.RESOURCE_PERMISSION_TYPE, (long)permissionType);
    }
}
